class Array
  def to_syms_from_names
    rvalue = []
    self.each{|ar| rvalue << ar.name.to_title_sym}
    rvalue
  end
end

class String
  def self.random(len = 10)
    chars = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a
    Array.new(len){||chars[rand(chars.size)]}.join
  end
  
  def to_title_sym
    self.underscore.tr(' ','_').to_sym
  end
end

class Symbol
  def to_title_str
    self.to_s.titleize
  end
end